package com.yeebo.controller;

import com.yeebo.user.AutoInvalidTask;
import com.yeebo.utils.ResponseUtils;
import com.yeebo.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("task")
public class TaskController {

    @Resource
    private AutoInvalidTask autoInvalidTask;

    @RequestMapping("/testInvoke")
    @ResponseBody
    public Result testInvoke() {
        autoInvalidTask.autoInvalidTask();
        return ResponseUtils.success("成功");
    }

}
